import request from '@/request/index.js';

export function getConsultationDoctorsDetails(params) {
	return request.get({
		url: '/app-api/collaboration/medical-consultation/get-patient',
		params: params || {},
		custom: {
			title: "会诊详情",
			authentication: true
		}
	});
}

export function getConsultationDoctorsList(params) {
	return request.get({
		url: '/app-api/collaboration/medical-consultation/page-patient',
		params: params || {},
		custom: {
			title: "会诊列表",
			authentication: true
		}
	});
}

export function payConsultationDoctorsOrder(params) {
	return request.post({
		url: '/app-api/collaboration/medical-consultation/wait-pay',
		params: params || {},
		custom: {
			title: "支付会诊订单",
			authentication: true
		}
	});
}

export function applyConsultationDoctorsAfterSales(data) {
	return request.post({
		url: '/app-api/collaboration/medical-consultation/apply-after-sales',
		data: data || {},
		custom: {
			title: "申请会诊订单退款",
			authentication: true
		}
	});
}

export function cancelConsultationDoctorsAfterSales(data) {
	return request.post({
		url: '/app-api/collaboration/medical-consultation/cancel-after-sales',
		data: data || {},
		custom: {
			title: "取消会诊订单申请退款",
			authentication: true
		}
	});
}